package collection;

import java.util.ArrayList;
import java.util.Collection;

public class CollectionDemo5 {
    public static void main(String[] args) {
        Collection<String> c = new ArrayList<>();
        c.add("one");
        System.out.println(c);
        /*
        try {
            boolean b = c.add(123);
            System.out.println(b);
        } catch (Exception e) {
            e.printStackTrace();
        }

         */
    }
}
